package routers

import (
	"bee/middleware"
	"bee/routers/api"
	"github.com/gin-gonic/gin"
)

func InitRouter() *gin.Engine {
	r := gin.New()
	r.Use(middleware.GinTrace())

	BeeApi := r.Group("/api")
	BeeApi.Use()
	{
		//BeeApi.POST("/order", order_service.CreateOrder)
		BeeApi.POST("/order", api.CreateOrder)
	}

	r.GET("/ws/echo", api.EchoWS)
	return r
}